package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserProject对象", description="用户所拥有的软件到期时间信息表")
public class UserProject implements Serializable {
    private static final long serialVersionUID = -5612689609641930616L;

    /**
     * 主键，分布式ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String username;

    @ApiModelProperty(value = "软件ID")
    private String projectId;

    @ApiModelProperty(value = "硬件编码")
    private String hardwareCoding;

    @ApiModelProperty(value = "使用到期时间")
    private Date effectiveTime;

    @ApiModelProperty(value = "用户信息")
    @TableField(exist = false)
    private SysUser sysUser;

    @ApiModelProperty(value = "软件信息")
    @TableField(exist = false)
    private ProjectDetailed projectDetailed;

    @ApiModelProperty(value = "更新天数")
    @TableField(exist = false)
    private int days;
}
